<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2025/6/13
  Time: 10:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.0.0.min.js"></script>
<script src="js/qrcode.min.js"></script>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div style="width: 100%;height: 100%;display: flex;align-items: center;">
    <div id="qrcode" style="margin: 0 auto"></div>
</div>
</body>
<script>
    zfb();
    function zfb(){
        $.ajax( {
            "url"          :  "ZfbServlet",
            "type"         :  "get",
            "data"         :  "data",
            "dataType" :  "text",
            "beforeSend": function() {
            },
            "success":  function(result) {
                console.log(result);
                var qrcode=new QRCode("qrcode", {
                    text: result,
                    width: 300,
                    height: 300,
                    colorDark: "#292929",
                    colorLight: "#ffffff",
                    correctLevel: QRCode.CorrectLevel.H
                });
            },
            "error":  function() {
            }
        } );
    }
</script>
</html>
